package com.vandzi.android.androidcode.service;

/**
 * 
 * @author Martin Vandžura
 * 
 *         Help to pass object between activities
 */
public class ActivitiesBringe {

	private static Object object;

	/**
	 * set object to static variable and retrieve it from another activity
	 * 
	 * @param obj
	 */
	public static void setObject(Object obj) {
		object = obj;
	}

	/**
	 * get object passed from previous activity
	 * 
	 * @return
	 */
	public static Object getObject() {
		Object obj = object;
		// can get only once
		object = null;
		return obj;
	}

}
